﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UPMS.Core.Domain
{
    [Serializable]
    public class Application : DomainBase
    {
        [Required, Display(Name = "Application"), StringLength(64), MaxLength(128), MinLength(4)]
        public virtual string Name { get; set; }

        [Required, Display(Name = "Host Name")]
        public virtual Guid HostId { get; set; }
        public virtual Host Host { get; set; }
        public virtual IList<Module> Modules { get; set; }
        public virtual IList<Group> Groups { get; set; }
        public virtual IList<Role> Roles { get; set; }
        public virtual IList<Account> Accounts { get; set; }

    }
}
